package com.shark.manager.system.service;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.shark.commons.base.service.IService;
import com.shark.manager.system.entity.Menu;

@Controller
@RequestMapping("/manager/system/menu")
public interface MenuService extends IService<Menu> {

	/**
	 * 根据访问地址查询
	 * @param location
	 * @return
	 */
	public Menu getLocation(String location) ;
	
	/**
	 * 查询子目录
	 * @return
	 */
	public List<Menu> findMenuChildByCatalog() ;
	
	/**
	 * 系统主页的左侧菜单树
	 * @param catalog_id
	 * @return
	 */
	public List<Menu> findMenuChildrenViewByPid(Integer catalog_id) ;
	
	/**
	 * 系统主页的左侧菜单
	 * @return
	 */
	public List<Menu> findAllMenuViewByTopCatalog() ;
	
	/**
	 * 查询所有一级的目录
	 * @return
	 */
	public List<Menu> findAllMenuByTopCatalog() ;
	
	/**
	 * 递归出tree
	 * @param id
	 * @return
	 */
	public List<Menu> treegrid() ;
}
